Inline type cast method for PG points