Cast Sensor.get() to return F type