import ballerina/io;
public function main() {
// Can cast `any` to specific type.
any x = 1.4;
float n = <float>x;
io:println(n);
if (x is decimal) {
io:println("x is decimal");
} else if (x is string) {
io:println("x is string");
} else if (x is float) {
io:println("x is float");
}
}